package com.wu.flandre_api.components;

import io.netty.channel.Channel;

/**
 * ChannelUtil <br/>
 *
 * @author 50816 <br/>
 * @date 2019/12/22 15:32 <br/>
 */
public class ChannelUtil {
    private static volatile ChannelUtil channelUtil = null;

    private ChannelUtil() {
    }

    private Channel channel;

    public static ChannelUtil getInstance() {
        synchronized (ChannelUtil.class) {
            if (channelUtil == null) {
                channelUtil = new ChannelUtil();
            }
            return channelUtil;
        }
    }

    public Channel getChannel() {
        return channel;
    }

    public void setChannel(Channel channel) {
        this.channel = channel;
    }
}
